package com.star.blog.service;

import com.star.blog.common.Result;
import com.star.blog.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.star.blog.vo.params.CommentParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 聂建强
 * @since 2021-11-28
 */
public interface CommentService extends IService<Comment> {

    /**
     * 根据文章id查询所有的评论列表
     * @param id
     * @return
     */
    Result commentsByArticleId(Long id);

    /**
     * 写评论
     * @param commentParam
     * @return
     */
    Result comment(CommentParam commentParam);
}
